﻿using UnityEngine;
using Unity.Entities;
using Unity.Collections;
using Unity.Mathematics;

namespace Jinndev.Tile2D {

    public struct RenderInfo {

        public int sequenceIndex;
        public int frame;
        public int direction;


        public static RenderInfo Create(int direction) {
            return new RenderInfo {
                direction = direction,
                sequenceIndex = 0, 
                frame = 0 
            };
        }

        public static RenderInfo Create(int sequenceIndex, int frame, int direction) {
            return new RenderInfo {
                sequenceIndex = sequenceIndex,
                frame = frame,
                direction = direction
            };
        }

        public override string ToString() {
            return $"Direction: {direction}, sequenceIndex: {sequenceIndex}, frame: {frame}";
        }

    }



}
